/* Copyright (C) 2016-2017 HangZhou Zenzet Technology Co., Ltd.
 * All right reserved

 * File:lktcommon.h
 * Author:guojianchuan
 * Date:2017-06-09

 */
    
#ifndef LKT_COMMON_H
#define LKT_COMMON_H
    
#ifdef __cplusplus
    extern "C" {
#endif

#define MAX_ENCRYPT_DATA_LEN                (1024*4)
#define MYSQL_IDENTIFIEY_MAX_LEN            64
#define DATABASE_NAME_MAX_LEN               MYSQL_IDENTIFIEY_MAX_LEN
#define DATABASE_ALIS_NAME_MAX_LEN          MYSQL_IDENTIFIEY_MAX_LEN
#define TABLE_NAME_MAX_LEN                  MYSQL_IDENTIFIEY_MAX_LEN
#define COLUMN_NAME_MAX_LEN                 MYSQL_IDENTIFIEY_MAX_LEN
#define COLUMN_TYPE_NAME_LEN                16
#define COLUMN_MAX_NUM                      128
#define TABLE_MAX_NUM                       64
#define DB_MAX_NUM                          24 
    

#define ACCESSKEY_ID_MAX_LEN                64
#define ACCESSKEY_SECRET_MAX_LEN            64
#define APP_MASTER_KEY_LEN                  (1024+512)
#define APP_PK_MAX_LEN                      2048
#define APP_PV_MAX_LEN                      (2048 * 3)
#define COMPANY_MASTER_KEY_LEN              (1024+512)
#define COMPANY_PV_LEN                      (2048 * 3)
#define KEY_MAX_LEN                         128
#define IV_MAX_LEN                          128
#define DB_STRATEGY_MAX_NUM                 512
#define TBL_STRATEGY_MAX_NUM                512
#define COLUMN_STRATEGY_MAX_NUM             512
#define ALGO_NAME_LEN                       32
#define MODE_NAME                           32
#define PADDING_NAME                        32
#define CHARSET_NAME_LEN                    32

#define SHM_KEY                             1987
#define DATA_REFRESH_DECRYPT_IDENTIFY       "/*lkt-dr-de*/"
#define DATA_REFRESH_SIGNLE_DATADECRYPTY    "/*lkt-de*/"

#ifdef __cplusplus
}
#endif

#endif

